package model

import "time"

//用于获取评论表
type Comment struct {
	Id          int64     `db:"id"`
	Content     string    `db:"content"`
	Username    string    `db:"username"`
	Article_id  int64     `db:"article_id"`
	Create_Time time.Time `db:"create_time"`
	Status      int8      `db:"status",default:1`
}

//type Comment struct {
//	Content    string `gorm:"type:text";not null`
//	UserName   string `gorm:"type:text";not null`
//	Article_id int    `gorm:"type:int";not null`
//	Status     int    `gorm:"type:text";default:1`
//}
